#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

_Bool is_leap_year(int year)
{
    if (year % 4 == 0 && year % 100 != 0 
            || year % 400 == 0) {
        return true;
    }
    return false;
}

int main()
{
    int year;

    while (scanf("%d", &year) == 1) {
        if (is_leap_year(year)) {
            printf("yes\n");
        } else {
            printf("no\n");
        }
    }

    return 0;
}